package com.morgankelly.dao;

import java.util.List;
import java.util.Map;

import com.morgankelly.po.BasePO;

public interface IGenericDAO<T extends BasePO> {

	public long listSize();
	
	public void add(T obj);

	public void delete(T obj);
	
	public void deleteByID(Long id);
	
	public T findByID(Long id);
	
	public List<T> findAll();
	
	@SuppressWarnings("unchecked")
	public List<T> findByProp(Map value);

}
